package com.oa.admin.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 房租租赁入住记录表
 * </p>
 *
 * @author syb123
 * @since 2019-02-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("admin_house_check_recording")
@ApiModel(value = "房租租赁入住记录表")
public class HouseCheckRecording extends Model<HouseCheckRecording> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "房屋id")
    @NotNull(message = "<房屋id>字段<houseId>不能为空！")
    private String houseId;

    @ApiModelProperty(value = "申请人")
    private String applicant;

    @ApiModelProperty(value = "部门")
    private String department;

    @ApiModelProperty(value = "入住房间号")
    private String num;

    @ApiModelProperty(value = "申请入住日期")
    private Date applicationCheckDate;

    @ApiModelProperty(value = "安排入住日期")
    private Date arrangementCheckDate;

    @ApiModelProperty(value = "是否删除")
    @JsonIgnore
    private Integer isDeleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}